package cn.initcap.designpattern.principle.demeter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author initcap
 * @date 2018/8/28 AM9:14
 */
public class TeamLeader {

    private static final int POSTION_ONLINE = 20;

    public void checkNumberOfCourses() {
        List<Course> courseList = new ArrayList<Course>();
        for (int i = 0; i < POSTION_ONLINE; i++) {
            courseList.add(new Course());
        }
        System.out.println("在线的数量是：" + courseList.size());
    }

}
